package cn.edu.scau.cmi.dengzejun.chapter08;

public class RedCowForm {
	String formName;
	RedCow cow;
	
	RedCowForm(){
		return;
	}
	
	
	RedCowForm(String s){
		cow=new RedCow(150,112,5000);
		formName=s;
		return;
	}
	
	public void showCowMess() {
		cow.speak();
		return;
	}
	
	class RedCow{
		String cowName="Red Cow";
		int height,weight,price;
		RedCow(int h,int w,int p){
			height=h;
			weight=w;
			price=p;
			return;
		}
		
		void speak() {
			System.out.println("I'm "+cowName+",my height is "+height+
							" cm ,my weight is "+weight+"kg.I'm living in "+formName);
			return;
		}
	}
}
